<?php
use app\components\BaseDetailView;
use app\components\BaseGridView;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\User */
?>

<?= BaseDetailView::widget([
    'model' => $model,
    'firstWidth' => '15%',
    'attributes' => [
        [
            'attribute' => 'avatar',
            'visible' => !empty($model->getAvatar()),
            'value' => Html::img($model->getAvatar(), ['class' => 'user-avatar']),
            'template' => '<tr><td colspan="2" class="text-left">{value}</td></tr>',
            'format' => 'raw'
        ],
        ['attribute' => 'uname', 'label' => '姓名'],
        'phone',
        ['label' => '学校', 'value' => $model->profile->school],
        ['label' => '邮箱', 'value' => $model->profile->email],
        ['label' => '微信', 'value' => $model->profile->wechat],
        ['label' => '自我介绍', 'value' => $model->profile->experience1],
        ['label' => '赛事经历', 'value' => $model->profile->experience2],
        ['label' => '义工经历', 'value' => $model->profile->experience3],
        ['label' => '兼职经历', 'value' => $model->profile->experience4],
        ['label' => '实习经历', 'value' => $model->profile->experience5],
        'ctime:datetime'
    ],
]); ?>